package com.ll.homework;

/**
 * @author 刘龙
 * @version 1.0
 */
public class Homework03 {
    public static void main(String[] args) {
        Animal cat = new Cat();
        Animal dog = new Dog();
        cat.show();
        dog.show();

    }
}

abstract class Animal {
    public abstract void show();
}

class Cat extends Animal {

    @Override
   public void show() {
        System.out.println("mmm");
    }
}

class Dog extends  Animal {

    @Override
    public void show() {
        System.out.println("WWW");
    }
}
